/*
 * @Date: 2023-03-09 14:03:09
 * @LastEditors: Zireael 1193875164@qq.com
 * @LastEditTime: 2023-03-24 15:04:46
 * @FilePath: \A19\backend\src\shared\protocols\Get\PtlGetTestQuestions.ts
 */
import { ObjectId } from "mongodb";
import { BaseRequest, BaseResponse, BaseConf } from "../base";
import { questions } from '../../types/Question';

export interface ReqGetTestQuestions extends BaseRequest {
    test:ObjectId
    examOrHomework:'exam' | 'homework'
}

export interface ResGetTestQuestions extends BaseResponse {
   test:Array<{
    _id: ObjectId,
    course: ObjectId,
    startTime: Date,
    endTime: Date,
    name: string,
    status: "saved" | "published"
    questions:Array<questions>
   }>
}

export const conf: BaseConf = {
    needLogin: true
}